﻿<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register Assembly="JPAjaxControlToolKit" Namespace="JPAjaxControlToolKit.JPAjaxControlToolKit"
    TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="AS_Codigo"
                DataSourceID="SqlDataSource1">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Image ID="Image1" runat="server" />
                            <asp:Panel ID="Panel1" runat="server" Height="50px"
                                Width="125px">
                                xxxxxxxx
                            </asp:Panel>
                            <cc1:HierarchicalGridExtender 
                                ID="HierarchicalGridExtender1" 
                                TargetControlID="Image1"
                                PanelToCollapse="Panel1"
                                ImageURLCollapsed="imgFechadoBranco.gif"
                                ImageURLExpanded="imgAbertoBranco.gif"
                                runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="AS_Codigo" HeaderText="AS_Codigo" InsertVisible="False"
                        ReadOnly="True" SortExpression="AS_Codigo" />
                    <asp:BoundField DataField="AS_Descricao" HeaderText="AS_Descricao" SortExpression="AS_Descricao" />
                    <asp:BoundField DataField="IDI_Codigo" HeaderText="IDI_Codigo" SortExpression="IDI_Codigo" />
                </Columns>
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ExtranetDPRConnectionString %>"
                SelectCommand="SELECT * FROM [AS_Assuntos]"></asp:SqlDataSource>
        </div>
    </form>
</body>
</html>
